package cn.lngaosu.lwyd.module.integration.controller.admin.weixinuseranalysis.vo;

import lombok.*;

import java.time.LocalDate;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.lngaosu.lwyd.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.lngaosu.lwyd.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;
import static cn.lngaosu.lwyd.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 微信用户分析表(增减合计、总用户量)分页 Request VO")
@Data
public class WeixinUserAnalysisPageReqVO extends PageParam {

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "数据的日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate[] refDate;

    @Schema(description = "新增的用户数量")
    private Integer newUser;

    @Schema(description = "取消关注的用户数量，new_user减去cancel_user即为净增用户数量")
    private Integer cancelUser;

    @Schema(description = "总用户量")
    private Integer cumulateUser;

}